Hacking For Beginners – Manthan Desai
2010
34. How to create a CON folder in Windows
Can you create a folder named "CON ” in windows?
The Answer is NO and YES!
Why the answer is NO.
NO because when create a new folder and try to rename it to above specified names, you know whathappens! In Windows XP the folder name automatically changes "New Folder” no matter you try any number oftimes. Where as in Windows Vista/7 when you try to rename get an error message "The specified devicename is invalid”.
Why it is not possible to create a folder names CON?
Before we proceed further, let me tell you a small secret you can’t even create a folder named
CON, PRN, AUX, NUL, COM1, COM2, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5,LPT6, LPT7, LPT8, and LPT9.and many
YES the reason you can’t create a folder with these names is because these are reserved keywords used by DOS. Thebelow list is taken from Microsoft’s website shows a list of reserved keywords in DOS.
NAME CONPRNAUXCLOCK$NULA: - Z:COM1LPT1LPT2LPT3
COM2COM3
COM4
FUNCTION Key board and display.System list device, usually a parallel port.Auxiliary Device, usually a serial port.System real-time clock.Bit-bucket device.Drive letters.First serial communication port.First parallel printer port.Second Parallel printer port.Third Parallel printer port.
Second serial communication port.Third serial communication port.
Fourth serial communication port.
www.hackingtech.co.tv
Page 192